package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 节点候选人（用户级）对象 audit_assignee
 * 
 * @author ruoyi
 * @date 2025-11-07
 */
@TableName("audit_assignee")
public class AuditAssignee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long auditAssigneeId;

    /**
     * 业务ID
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long businessId;

    /** 审批业务类型 */
    private String auditBusinessType;
    
    public String getAuditBusinessType() {
        return auditBusinessType;
    }
    
    public void setAuditBusinessType(String auditBusinessType) {
        this.auditBusinessType = auditBusinessType;
    }

    /**
     * 审批路径ID
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long auditRouteId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 1 审批 2 抄送 */
    @Excel(name = "1 审批 2 抄送")
    private String actionType;

    /** 审核状态 0 待审核 1审核中 2审核通过 3审核拒绝 -1作废 */
    @Excel(name = "审核状态 0 待审核 1审核中 2审核通过 3审核拒绝 -1作废")
    private String auditStatus;

    private Integer roundNo;
    public Integer getRoundNo() {
        return roundNo;
    }
    public void setRoundNo(Integer roundNo) {
        this.roundNo = roundNo;
    }

    public void setAuditAssigneeId(Long auditAssigneeId)
    {
        this.auditAssigneeId = auditAssigneeId;
    }

    public Long getAuditAssigneeId()
    {
        return auditAssigneeId;
    }

    public void setBusinessId(Long businessId)
    {
        this.businessId = businessId;
    }

    public Long getBusinessId()
    {
        return businessId;
    }

    public void setAuditRouteId(Long auditRouteId)
    {
        this.auditRouteId = auditRouteId;
    }

    public Long getAuditRouteId()
    {
        return auditRouteId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setActionType(String actionType) 
    {
        this.actionType = actionType;
    }

    public String getActionType() 
    {
        return actionType;
    }

    public void setAuditStatus(String auditStatus)
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus()
    {
        return auditStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("auditAssigneeId", getAuditAssigneeId())
            .append("businessId", getBusinessId())
            .append("auditBusinessType", getAuditBusinessType())
            .append("auditRouteId", getAuditRouteId())
            .append("userId", getUserId())
            .append("actionType", getActionType())
            .append("auditStatus", getAuditStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    /**
     * 节点审批人名称
     */
    @TableField(exist = false)
    private String userName;
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 节点审批记录
     */
    @TableField(exist = false)
    private List<AuditRecord> auditRecordList;

    @TableField(exist = false)
    private Long currentAuditRouteId;
    public Long getCurrentAuditRouteId() {
        return currentAuditRouteId;
    }
    public void setCurrentAuditRouteId(Long currentAuditRouteId) {
        this.currentAuditRouteId = currentAuditRouteId;
    }
}